\hypertarget{structrt__thread}{
\section{rt\_\-thread结构参考}
\label{structrt__thread}\index{rt\_\-thread@{rt\_\-thread}}
}


{\ttfamily \#include $<$rtdef.h$>$}

\subsection*{公有属性}
\begin{DoxyCompactItemize}
\item 
char \hyperlink{structrt__thread_a89b5c7fb22abb868056586e365b3fbd3}{name} \mbox{[}RT\_\-NAME\_\-MAX\mbox{]}
\item 
\hyperlink{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{rt\_\-uint8\_\-t} \hyperlink{structrt__thread_a9e66117dc5b76db6d0d78aa3077b57da}{type}
\item 
\hyperlink{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{rt\_\-uint8\_\-t} \hyperlink{structrt__thread_a0a62e2cba8609469b351472d615fd326}{flags}
\item 
\hyperlink{structrt__list__node}{rt\_\-list\_\-t} \hyperlink{structrt__thread_a30dd781aa72ce771beef5ed7a4cdbbd7}{list}
\item 
\hyperlink{structrt__list__node}{rt\_\-list\_\-t} \hyperlink{structrt__thread_a8484a36933357e7c6f871364d9f2d3a9}{tlist}
\item 
void $\ast$ \hyperlink{structrt__thread_abc9d01c30e0fc9872df2fd5c044e31e0}{sp}
\item 
void $\ast$ \hyperlink{structrt__thread_adcdaf75f05998c6485544c337526da52}{entry}
\item 
void $\ast$ \hyperlink{structrt__thread_a153b0810eaeb3c0508f3fdc9027a301e}{parameter}
\item 
void $\ast$ \hyperlink{structrt__thread_a2bb90555aaff4a54699c88c2789e0407}{stack\_\-addr}
\item 
\hyperlink{group__BasicDef_ga5acba55f46553417996ac70828b874da}{rt\_\-uint16\_\-t} \hyperlink{structrt__thread_a08915cf4c568a17fb73b938c82f9cf25}{stack\_\-size}
\item 
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} \hyperlink{structrt__thread_a32eec53f34cb610335b085a642e6e995}{error}
\item 
\hyperlink{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{rt\_\-uint8\_\-t} \hyperlink{structrt__thread_a16a3dd776f8cfed732deda73535dbb00}{stat}
\item 
\hyperlink{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{rt\_\-uint8\_\-t} \hyperlink{structrt__thread_a90875799a0ea47e5558f104702a20548}{current\_\-priority}
\item 
\hyperlink{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{rt\_\-uint8\_\-t} \hyperlink{structrt__thread_a281785b80ad0dc2e7d0c5404d32c67f9}{init\_\-priority}
\item 
\hypertarget{structrt__thread_a5dbed340b3ba61be1e2cd7d3fdf2af56}{
\hyperlink{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{rt\_\-uint32\_\-t} {\bfseries number\_\-mask}}
\label{structrt__thread_a5dbed340b3ba61be1e2cd7d3fdf2af56}

\item 
\hyperlink{group__BasicDef_ga958cc0f5d3f7bf59850cd8bd13a4aeb0}{rt\_\-ubase\_\-t} \hyperlink{structrt__thread_a3da450b626778b5cf1125174783c1989}{init\_\-tick}
\item 
\hyperlink{group__BasicDef_ga958cc0f5d3f7bf59850cd8bd13a4aeb0}{rt\_\-ubase\_\-t} \hyperlink{structrt__thread_a763db3299b6a4c69ad7aa5b7815f3daf}{remaining\_\-tick}
\item 
struct \hyperlink{structrt__timer}{rt\_\-timer} \hyperlink{structrt__thread_ac787f3fbcdc5f8d012f2d6d9923f5560}{thread\_\-timer}
\item 
void($\ast$ \hyperlink{structrt__thread_ac7c6d56c56677160b3c651571bcb127a}{cleanup} )(struct \hyperlink{structrt__thread}{rt\_\-thread} $\ast$tid)
\item 
\hyperlink{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{rt\_\-uint32\_\-t} \hyperlink{structrt__thread_ad237699b29310d61d8d709253782372b}{user\_\-data}
\end{DoxyCompactItemize}


\subsection{详细描述}
Thread structure 

\subsection{成员数据文档}
\hypertarget{structrt__thread_ac7c6d56c56677160b3c651571bcb127a}{
\index{rt\_\-thread@{rt\_\-thread}!cleanup@{cleanup}}
\index{cleanup@{cleanup}!rt_thread@{rt\_\-thread}}
\subsubsection[{cleanup}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf rt\_\-thread::cleanup})(struct {\bf rt\_\-thread} $\ast$tid)}}
\label{structrt__thread_ac7c6d56c56677160b3c651571bcb127a}
cleanup function when thread exit \hypertarget{structrt__thread_a90875799a0ea47e5558f104702a20548}{
\index{rt\_\-thread@{rt\_\-thread}!current\_\-priority@{current\_\-priority}}
\index{current\_\-priority@{current\_\-priority}!rt_thread@{rt\_\-thread}}
\subsubsection[{current\_\-priority}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-uint8\_\-t} {\bf rt\_\-thread::current\_\-priority}}}
\label{structrt__thread_a90875799a0ea47e5558f104702a20548}
current priority \hypertarget{structrt__thread_adcdaf75f05998c6485544c337526da52}{
\index{rt\_\-thread@{rt\_\-thread}!entry@{entry}}
\index{entry@{entry}!rt_thread@{rt\_\-thread}}
\subsubsection[{entry}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ {\bf rt\_\-thread::entry}}}
\label{structrt__thread_adcdaf75f05998c6485544c337526da52}
entry \hypertarget{structrt__thread_a32eec53f34cb610335b085a642e6e995}{
\index{rt\_\-thread@{rt\_\-thread}!error@{error}}
\index{error@{error}!rt_thread@{rt\_\-thread}}
\subsubsection[{error}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-err\_\-t} {\bf rt\_\-thread::error}}}
\label{structrt__thread_a32eec53f34cb610335b085a642e6e995}
error code \hypertarget{structrt__thread_a0a62e2cba8609469b351472d615fd326}{
\index{rt\_\-thread@{rt\_\-thread}!flags@{flags}}
\index{flags@{flags}!rt_thread@{rt\_\-thread}}
\subsubsection[{flags}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-uint8\_\-t} {\bf rt\_\-thread::flags}}}
\label{structrt__thread_a0a62e2cba8609469b351472d615fd326}
thread's flags \hypertarget{structrt__thread_a281785b80ad0dc2e7d0c5404d32c67f9}{
\index{rt\_\-thread@{rt\_\-thread}!init\_\-priority@{init\_\-priority}}
\index{init\_\-priority@{init\_\-priority}!rt_thread@{rt\_\-thread}}
\subsubsection[{init\_\-priority}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-uint8\_\-t} {\bf rt\_\-thread::init\_\-priority}}}
\label{structrt__thread_a281785b80ad0dc2e7d0c5404d32c67f9}
initialized priority \hypertarget{structrt__thread_a3da450b626778b5cf1125174783c1989}{
\index{rt\_\-thread@{rt\_\-thread}!init\_\-tick@{init\_\-tick}}
\index{init\_\-tick@{init\_\-tick}!rt_thread@{rt\_\-thread}}
\subsubsection[{init\_\-tick}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-ubase\_\-t} {\bf rt\_\-thread::init\_\-tick}}}
\label{structrt__thread_a3da450b626778b5cf1125174783c1989}
thread's initialized tick \hypertarget{structrt__thread_a30dd781aa72ce771beef5ed7a4cdbbd7}{
\index{rt\_\-thread@{rt\_\-thread}!list@{list}}
\index{list@{list}!rt_thread@{rt\_\-thread}}
\subsubsection[{list}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-list\_\-t} {\bf rt\_\-thread::list}}}
\label{structrt__thread_a30dd781aa72ce771beef5ed7a4cdbbd7}
the object list \hypertarget{structrt__thread_a89b5c7fb22abb868056586e365b3fbd3}{
\index{rt\_\-thread@{rt\_\-thread}!name@{name}}
\index{name@{name}!rt_thread@{rt\_\-thread}}
\subsubsection[{name}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf rt\_\-thread::name}\mbox{[}RT\_\-NAME\_\-MAX\mbox{]}}}
\label{structrt__thread_a89b5c7fb22abb868056586e365b3fbd3}
the name of thread \hypertarget{structrt__thread_a153b0810eaeb3c0508f3fdc9027a301e}{
\index{rt\_\-thread@{rt\_\-thread}!parameter@{parameter}}
\index{parameter@{parameter}!rt_thread@{rt\_\-thread}}
\subsubsection[{parameter}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ {\bf rt\_\-thread::parameter}}}
\label{structrt__thread_a153b0810eaeb3c0508f3fdc9027a301e}
parameter \hypertarget{structrt__thread_a763db3299b6a4c69ad7aa5b7815f3daf}{
\index{rt\_\-thread@{rt\_\-thread}!remaining\_\-tick@{remaining\_\-tick}}
\index{remaining\_\-tick@{remaining\_\-tick}!rt_thread@{rt\_\-thread}}
\subsubsection[{remaining\_\-tick}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-ubase\_\-t} {\bf rt\_\-thread::remaining\_\-tick}}}
\label{structrt__thread_a763db3299b6a4c69ad7aa5b7815f3daf}
remaining tick \hypertarget{structrt__thread_abc9d01c30e0fc9872df2fd5c044e31e0}{
\index{rt\_\-thread@{rt\_\-thread}!sp@{sp}}
\index{sp@{sp}!rt_thread@{rt\_\-thread}}
\subsubsection[{sp}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ {\bf rt\_\-thread::sp}}}
\label{structrt__thread_abc9d01c30e0fc9872df2fd5c044e31e0}
stack point \hypertarget{structrt__thread_a2bb90555aaff4a54699c88c2789e0407}{
\index{rt\_\-thread@{rt\_\-thread}!stack\_\-addr@{stack\_\-addr}}
\index{stack\_\-addr@{stack\_\-addr}!rt_thread@{rt\_\-thread}}
\subsubsection[{stack\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ {\bf rt\_\-thread::stack\_\-addr}}}
\label{structrt__thread_a2bb90555aaff4a54699c88c2789e0407}
stack address \hypertarget{structrt__thread_a08915cf4c568a17fb73b938c82f9cf25}{
\index{rt\_\-thread@{rt\_\-thread}!stack\_\-size@{stack\_\-size}}
\index{stack\_\-size@{stack\_\-size}!rt_thread@{rt\_\-thread}}
\subsubsection[{stack\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-uint16\_\-t} {\bf rt\_\-thread::stack\_\-size}}}
\label{structrt__thread_a08915cf4c568a17fb73b938c82f9cf25}
stack size \hypertarget{structrt__thread_a16a3dd776f8cfed732deda73535dbb00}{
\index{rt\_\-thread@{rt\_\-thread}!stat@{stat}}
\index{stat@{stat}!rt_thread@{rt\_\-thread}}
\subsubsection[{stat}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-uint8\_\-t} {\bf rt\_\-thread::stat}}}
\label{structrt__thread_a16a3dd776f8cfed732deda73535dbb00}
thread stat \hypertarget{structrt__thread_ac787f3fbcdc5f8d012f2d6d9923f5560}{
\index{rt\_\-thread@{rt\_\-thread}!thread\_\-timer@{thread\_\-timer}}
\index{thread\_\-timer@{thread\_\-timer}!rt_thread@{rt\_\-thread}}
\subsubsection[{thread\_\-timer}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf rt\_\-timer} {\bf rt\_\-thread::thread\_\-timer}}}
\label{structrt__thread_ac787f3fbcdc5f8d012f2d6d9923f5560}
built-\/in thread timer \hypertarget{structrt__thread_a8484a36933357e7c6f871364d9f2d3a9}{
\index{rt\_\-thread@{rt\_\-thread}!tlist@{tlist}}
\index{tlist@{tlist}!rt_thread@{rt\_\-thread}}
\subsubsection[{tlist}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-list\_\-t} {\bf rt\_\-thread::tlist}}}
\label{structrt__thread_a8484a36933357e7c6f871364d9f2d3a9}
the thread list \hypertarget{structrt__thread_a9e66117dc5b76db6d0d78aa3077b57da}{
\index{rt\_\-thread@{rt\_\-thread}!type@{type}}
\index{type@{type}!rt_thread@{rt\_\-thread}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-uint8\_\-t} {\bf rt\_\-thread::type}}}
\label{structrt__thread_a9e66117dc5b76db6d0d78aa3077b57da}
type of object \hypertarget{structrt__thread_ad237699b29310d61d8d709253782372b}{
\index{rt\_\-thread@{rt\_\-thread}!user\_\-data@{user\_\-data}}
\index{user\_\-data@{user\_\-data}!rt_thread@{rt\_\-thread}}
\subsubsection[{user\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rt\_\-uint32\_\-t} {\bf rt\_\-thread::user\_\-data}}}
\label{structrt__thread_ad237699b29310d61d8d709253782372b}
private user data beyond this thread 

该结构的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
rtdef.h\end{DoxyCompactItemize}
